﻿using Kooboo.Web.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace DemoModule
{
    public class ModuleAreaRegisteration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "DemoModule";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "DemoModule_Default",
                "DemoModule/{Controller}/{Action}/{id}",
                new { id = UrlParameter.Optional },
                new[] { "DemoModule.Controllers", "Kooboo.Web.Mvc", "Kooboo.Web.Mvc.WebResourceLoader" }
                );
            Kooboo.Web.Mvc.WebResourceLoader.ConfigurationManager.RegisterSection(AreaName, AreaHelpers.CombineAreaFilePhysicalPath(AreaName, "WebResources.config"));
        }
    }
}
